<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" %>
<html>
<head>
  <title>Title</title>
</head>
<style>
  *{
    padding:0;
    margin:0;
    border: 0;
  }
  table{

    text-align: center;
    margin: 2% auto;
    border-collapse: collapse;
  }
  th{
    background-color:#f8f8f8;
    height: 35px;
  }
  th:nth-child(1){
    width: 6%;
  }
  th:nth-child(3){
    width: 14%;
  }
  th:nth-child(7){
    width: 10%;
  }
  th,td,table{
    border: 1px solid #dddddd;
  }
  a{
    text-decoration: none;
    color: #2aabd2;
  }
  td{
    height: 35px;
  }


</style>
<body>

<table>
  <thead >
  <tr>
    <th>ID</th>
    <th>Name</th>
    <th>ContactName</th>
    <th>Phone</th>
    <th>Address</th>
    <th>Email</th>
    <th>Function</th>
  </tr>
  </thead>

  <tbody>
  <c:forEach items="${display}" var="display">
    <tr>
      <td>${display.customerID}</td>
      <td>${display.companyName}</td>
      <td>${display.contactName}</td>
      <td>${display.phone}</td>
      <td>${display.address}</td>
      <td>${display.emailAddress}</td>
      <td>
        <a href="${pageContext.request.contextPath}/displaySingle?customerId=${customer.customerID}">修改</a>
        |
        <a href="${pageContext.request.contextPath}/deleteSingle?customerId=${customer.customerID}">删除</a>
      </td>
    </tr>

  </c:forEach>
  </tbody>
</table>
</body>
</html>
